package com.telit.firecommand.service;

import com.telit.firecommand.entity.DailyWeather;
import com.telit.firecommand.entity.HourlyWeather;
import com.telit.firecommand.entity.NowWeather;

import java.util.List;


/**
 * @Auther amy
 * @Describe
 */
public interface WeatherService {

    /**
     * 获取实时天气
     * @return
     */
    NowWeather getNowWeather(String location);

    /**
     * 供前端使用的查询五天内的天气数据
     *
     * @param location
     *
     * @return
     */
    String getDailyWeatherString(String location, Integer start, Integer day);

    /**
     * 获取当天的天气
     *
     * @param location
     *
     * @return
     */
    DailyWeather getOneDayWeather(String location, Integer start, Integer day);

    /**
     * 获取时间周期的天气
     */
    List<DailyWeather> getWeather(String location, Integer start, Integer day);

    /**
     * 计算蔓延速度
     *
     * @return
     */
    Double getSpreadRate(NowWeather nowWeather);

    /**
     * 获取逐小时的天气预报
     * @param location
     * @return
     */
    List<HourlyWeather> getHourlyWeather(String location);
}
